<!DOCTYPE html>
<html>
    <head>
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'productMortgageRate.label', default: 'ProductMortgageRate')}" />
        <title>编辑产品抵押率</title>
    </head>
    <body>
        <div class="small-header">
            <div class="hpanel">
                <div class="panel-body">
                    <div id="hbreadcrumb" class="pull-right">
                        <ol class="hbreadcrumb breadcrumb">
                            <li>贷款管理系统</li>
                            <li><g:link controller="product" action="index">产品管理</g:link></li>
                            <li class="active">
                                产品抵押率
                            </li>
                        </ol>
                    </div>

                    <h2 class="font-light m-b-xs" style="text-transform:none;">
                        产品: ${this.productMortgageRate?.product?.product?.name}
                    </h2>
                </div>
            </div>
        </div>
        <div class="content animate-panel">
            <div class="row">
                <div class="hpanel hgreen">
                    <div class="panel-heading">
                            ${this.productMortgageRate.product.product.name}-产品抵押率
                    </div>
                    <div class="panel-body">
                        <g:if test="${flash.message}">
                            <div class="message" role="status">${flash.message}</div>
                        </g:if>
                        <g:hasErrors bean="${this.productMortgageRate}">
                            <ul class="errors" role="alert">
                                <g:eachError bean="${this.productMortgageRate}" var="error">
                                    <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
                                </g:eachError>
                            </ul>
                        </g:hasErrors>
                        <g:form resource="${this.productMortgageRate}" method="PUT" class="form-horizontal">
                            <input type="hidden" name="product" value="${this.productMortgageRate?.product?.id}">
                            <div class="form-group">
                                <label class="col-md-3 control-label">抵押率</label>
                                <div class="col-md-3">
                                    <g:textField class="form-control" type="text" name="mortgageRate" id="mortgageRate" value="${this.productMortgageRate?.mortgageRate}"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-md-3 control-label">押品类型</label>
                                <div class="col-md-3">
                                    <g:select class="form-control m-b" name="assetType" value="${this.productMortgageRate?.assetType?.id}" optionKey="id" optionValue="name" from="${com.next.AssetType.list()}" noSelection="['':'-请选择-']"></g:select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-md-3 col-lg-offset-3">
                                    <g:submitButton name="update" class="btn btn-info" value="保存"/>
                                </div>
                            </div>
                        </g:form>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
